package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EmployeeServiceChargeItemTypeMapper;
import com.ruoyi.system.domain.EmployeeServiceChargeItemType;
import com.ruoyi.system.service.IEmployeeServiceChargeItemTypeService;

/**
 * 员工服务计费项类型Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class EmployeeServiceChargeItemTypeServiceImpl implements IEmployeeServiceChargeItemTypeService
{
    @Autowired
    private EmployeeServiceChargeItemTypeMapper employeeServiceChargeItemTypeMapper;

    /**
     * 通过id查询员工服务计费项类型
     *
     * @param id 员工服务计费项类型主键
     * @return 员工服务计费项类型
     */
    @Override
    public EmployeeServiceChargeItemType selectEmployeeServiceChargeItemTypeById(Long id)
    {
        return employeeServiceChargeItemTypeMapper.selectEmployeeServiceChargeItemTypeById(id);
    }

    /**
     * 查询员工服务计费项类型列表
     *
     * @param employeeServiceChargeItemType 员工服务计费项类型
     * @return 员工服务计费项类型
     */
    @Override
    public List<EmployeeServiceChargeItemType> selectEmployeeServiceChargeItemTypeList(EmployeeServiceChargeItemType employeeServiceChargeItemType)
    {
        return employeeServiceChargeItemTypeMapper.selectEmployeeServiceChargeItemTypeList(employeeServiceChargeItemType);
    }

    /**
     * 新增员工服务计费项类型
     *
     * @param employeeServiceChargeItemType 员工服务计费项类型
     * @return 结果
     */
    @Override
    public int insertEmployeeServiceChargeItemType(EmployeeServiceChargeItemType employeeServiceChargeItemType)
    {
        return employeeServiceChargeItemTypeMapper.insertEmployeeServiceChargeItemType(employeeServiceChargeItemType);
    }

    /**
     * 修改员工服务计费项类型
     *
     * @param employeeServiceChargeItemType 员工服务计费项类型
     * @return 结果
     */
    @Override
    public int updateEmployeeServiceChargeItemType(EmployeeServiceChargeItemType employeeServiceChargeItemType)
    {
        return employeeServiceChargeItemTypeMapper.updateEmployeeServiceChargeItemType(employeeServiceChargeItemType);
    }

    /**
     * 批量删除员工服务计费项类型
     *
     * @param ids 需要删除的员工服务计费项类型主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceChargeItemTypeByIds(Long[] ids)
    {
        return employeeServiceChargeItemTypeMapper.deleteEmployeeServiceChargeItemTypeByIds(ids);
    }

    /**
     * 删除员工服务计费项类型信息
     *
     * @param id 员工服务计费项类型主键
     * @return 结果
     */
    @Override
    public int deleteEmployeeServiceChargeItemTypeById(Long id)
    {
        return employeeServiceChargeItemTypeMapper.deleteEmployeeServiceChargeItemTypeById(id);
    }
}
